<?php

namespace app\common\model;

class ResumeEmail extends \app\common\model\BaseModel {

    protected $insert = [
        'addtime',
        'updatetime'
    ];

    protected $update = ['updatetime'];

    protected function setAddtimeAttr($value = null) {
        return $value === null ? time() : $value;
    }

    protected function setUpdatetimeAttr($value = null) {
        return $value === null ? time() : $value;
    }

    protected $type = [
        'id' => 'integer',
        'company_id' => 'integer',
        'status' => 'integer',
    ];

}
